import {request,upload} from './index';


/**
 * 获取钱包余额
 * @param data
 * @returns {Promise<*>|*}
 */
export const getWalletBalance = (data) => {
  return request({
    url: '/api/v1/wallet/getWalletBalance',
    method: 'POST',
    data,
  })
}

/**
 * 余额充值
 * @param data
 * @returns {Promise<*>|*}
 */
export const rechargeBalance = (data) => {
  return request({
    url: '/api/v1/wallet/rechargeBalance',
    method: 'POST',
    data,
  })
}

/**
 * 余额明细
 * @param data
 * @returns {Promise<*>|*}
 */
export const rechargeRecord = (data) => {
  return request({
    url: '/api/v1/wallet/rechargeRecord',
    method: 'POST',
    data,
  })
}

/**
 * 发送红包
 * @param data
 * @returns {Promise<*>|*}
 */
export const sendRedPacket = (data) => {
  return request({
    url: '/api/v1/wallet/sendRedPacket',
    method: 'POST',
    data,
  })
}

/**
 * 检查红包
 * @param data
 * @returns {Promise<*>|*}
 */
export const checkRedPacket = (data) => {
  return request({
    url: '/api/v1/wallet/checkRedPacket',
    method: 'POST',
    data,
  })
}

/**
 * 红包详情
 * @param data
 * @returns {Promise<*>|*}
 */
export const redPacketInfo = (data) => {
  return request({
    url: '/api/v1/wallet/redPacketInfo',
    method: 'POST',
    data,
  })
}

/**
 * 红包领取记录
 * @param data
 * @returns {Promise<*>|*}
 */
export const redPacketRecord = (data) => {
  return request({
    url: '/api/v1/wallet/redPacketRecord',
    method: 'POST',
    data,
  })
}

/**
 * 领取红包
 * @param data
 * @returns {Promise<*>|*}
 */
export const getRedPacket = (data) => {
  return request({
    url: '/api/v1/wallet/getRedPacket',
    method: 'POST',
    data,
  })
}

/**
 * 红包记录信息
 * @param data
 * @returns {Promise<*>|*}
 */
export const getRedPacketInfo = (data) => {
  return request({
    url: '/api/v1/wallet/getRedPacketInfo',
    method: 'POST',
    data,
  })
}

/**
 * 红包记录
 * @param data
 * @returns {Promise<*>|*}
 */
export const getRedPacketRecord = (data) => {
  return request({
    url: '/api/v1/wallet/getRedPacketRecord',
    method: 'POST',
    data,
  })
}
